/* Firefox userChrome.css tweaks ********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/


/* blue */
#appMenu-fxa-label2::before,
#fxa-manage-account-button::before,
:is(#appMenu-new-window-button2,#appMenu-downloads-button,#appMenu-save-file-button2,#appMenu-zoomEnlarge-button2,#PanelUI-fxa-menu-sync-prefs-button,#appMenu_aboutName) > .toolbarbutton-icon {
  fill: #4169e1 !important; 
}

:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) #fxa-manage-account-button::before,
:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) #appMenu-fxa-label2::before,
:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) :is(#appMenu-new-window-button2,#appMenu-downloads-button,#appMenu-save-file-button2,#appMenu-zoomEnlarge-button2,#PanelUI-fxa-menu-sync-prefs-button,#appMenu_aboutName) > .toolbarbutton-icon {
  fill: #00d2ff !important; 
}

@media (-moz-content-prefers-color-scheme: dark) {
	:root[lwtheme]:not([style*='--lwt-header-image']) #fxa-manage-account-button::before,
	:root[lwtheme]:not([style*='--lwt-header-image']) #appMenu-fxa-label2::before,
	:root[lwtheme]:not([style*='--lwt-header-image']) :is(#appMenu-new-window-button2,#appMenu-downloads-button,#appMenu-save-file-button2,#appMenu-zoomEnlarge-button2,#PanelUI-fxa-menu-sync-prefs-button,#appMenu_aboutName) > .toolbarbutton-icon {
	  fill: #00d2ff !important; 
	}
}

/* purple */
:is(#appMenu-new-private-window-button2,#appMenu-history-button,#appMenuSearchHistory,#appMenu-print-button2,#appMenu-translate-button) > .toolbarbutton-icon,
#PanelUI-history :is(#appMenuRecentlyClosedTabs,#appMenuRecentlyClosedWindows,#appMenuRestoreSession,#appMenu-restoreSession) > .toolbarbutton-icon {
  fill: #800080 !important;
}

:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) :is(#appMenu-new-private-window-button2,#appMenu-history-button,#appMenuSearchHistory,#appMenu-print-button2,#appMenu-translate-button) > .toolbarbutton-icon,
:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) #PanelUI-history :is(#appMenuRecentlyClosedTabs,#appMenuRecentlyClosedWindows,#appMenuRestoreSession,#appMenu-restoreSession) > .toolbarbutton-icon {
  fill: #ff00ff !important;
}

@media (-moz-content-prefers-color-scheme: dark) {
	:root[lwtheme]:not([style*='--lwt-header-image']) :is(#appMenu-new-private-window-button2,#appMenu-history-button,#appMenuSearchHistory,#appMenu-print-button2) > .toolbarbutton-icon,
	:root[lwtheme]:not([style*='--lwt-header-image']) #PanelUI-history :is(#appMenuRecentlyClosedTabs,#appMenuRecentlyClosedWindows,#appMenuRestoreSession,#appMenu-restoreSession) > .toolbarbutton-icon {
	  fill: #ff00ff !important;
	}
}

/* dark blue */
:is(#appMenu-bookmarks-button,#appMenu-find-button2,#appMenu-more-button2,#appMenu-help-button2,#appmenu-moreTools-button,#panelMenu_showAllBookmarks,#PanelUI-historyMore,#appMenu_menu_openHelp) > .toolbarbutton-icon,
:is(#appMenu-zoom-controls,#appMenu-zoom-controls2)::before,
#PanelUI-bookmarks :is(#panelMenuBookmarkThisPage,#panelMenu_searchBookmarks) > .toolbarbutton-icon {
  fill: #336699 !important;
}

:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) :is(#appMenu-bookmarks-button,#appMenu-find-button2,#appMenu-more-button2,#appMenu-help-button2,#appmenu-moreTools-button,#panelMenu_showAllBookmarks,#PanelUI-historyMore,#appMenu_menu_openHelp) > .toolbarbutton-icon,
:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) :is(#appMenu-zoom-controls,#appMenu-zoom-controls2)::before,
:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) #PanelUI-bookmarks :is(#panelMenuBookmarkThisPage,#panelMenu_searchBookmarks) > .toolbarbutton-icon {
  fill: #64a3e2 !important;
}

@media (-moz-content-prefers-color-scheme: dark) {
	:root[lwtheme]:not([style*='--lwt-header-image']) :is(#appMenu-bookmarks-button,#appMenu-find-button2,#appMenu-more-button2,#appMenu-help-button2,#appmenu-moreTools-button,#panelMenu_showAllBookmarks,#PanelUI-historyMore,#appMenu_menu_openHelp) > .toolbarbutton-icon,
	:root[lwtheme]:not([style*='--lwt-header-image']) :is(#appMenu-zoom-controls,#appMenu-zoom-controls2)::before,
	:root[lwtheme]:not([style*='--lwt-header-image']) #PanelUI-bookmarks :is(#panelMenuBookmarkThisPage,#panelMenu_searchBookmarks) > .toolbarbutton-icon {
	  fill: #64a3e2 !important;
	}
}

/* red */
#PanelUI-fxa-menu-syncnow-button::before,
:is(#appMenu-passwords-button,#appMenu-quit-button2,#appMenu-zoomReduce-button2,#appMenuClearRecentHistory,#PanelUI-fxa-menu-account-signout-button,#appMenu_help_reportSiteIssue,#appMenu_menu_HelpPopup_reportPhishingtoolmenu,#appMenu-report-broken-site-button,#appMenu-restart-button) > .toolbarbutton-icon {
  fill: red !important;
}

:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) #PanelUI-fxa-menu-syncnow-button::before,
:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) :is(#appMenu-passwords-button,#appMenu-quit-button2,#appMenu-zoomReduce-button2,#appMenuClearRecentHistory,#PanelUI-fxa-menu-account-signout-button,#appMenu_help_reportSiteIssue,#appMenu_menu_HelpPopup_reportPhishingtoolmenu,#appMenu-report-broken-site-button,#appMenu-restart-button) > .toolbarbutton-icon {
  fill: #ff5a5a !important;
}

@media (-moz-content-prefers-color-scheme: dark) {
	:root[lwtheme]:not([style*='--lwt-header-image']) #PanelUI-fxa-menu-syncnow-button::before,
	:root[lwtheme]:not([style*='--lwt-header-image']) :is(#appMenu-passwords-button,#appMenu-quit-button2,#appMenu-zoomReduce-button2,#appMenuClearRecentHistory,#PanelUI-fxa-menu-account-signout-button,#appMenu_help_reportSiteIssue,#appMenu_menu_HelpPopup_reportPhishingtoolmenu,#appMenu-report-broken-site-button,#appMenu-restart-button) > .toolbarbutton-icon {
	  fill: #ff5a5a !important;
	}
}

/* green */
:is(#appMenu-extensions-themes-button,#PanelUI-fxa-menu-sendtab-button,#appMenu_feedbackPage) > .toolbarbutton-icon {
  fill: green !important;
}

:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) :is(#appMenu-extensions-themes-button,#PanelUI-fxa-menu-sendtab-button,#appMenu_feedbackPage) > .toolbarbutton-icon {
  fill: lightgreen !important;
}

@media (-moz-content-prefers-color-scheme: dark) {
	:root[lwtheme]:not([style*='--lwt-header-image']) :is(#appMenu-extensions-themes-button,#PanelUI-fxa-menu-sendtab-button,#appMenu_feedbackPage) > .toolbarbutton-icon {
	  fill: lightgreen !important;
	}
}

/* orange */
:is(#appMenu-new-tab-button2,#appMenu-fullscreen-button2,#panelMenu_viewBookmarksToolbar,#PanelUI-fxa-menu-connect-device-button,#appMenu_helpSwitchDevice,#appMenu_helpSafeMode,#appMenu_troubleShooting) > .toolbarbutton-icon {
  fill: orange !important;
}

:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) :is(#appMenu-new-tab-button2,#appMenu-fullscreen-button2,#panelMenu_viewBookmarksToolbar,#PanelUI-fxa-menu-connect-device-button,#appMenu_helpSwitchDevice,#appMenu_helpSafeMode,#appMenu_troubleShooting) > .toolbarbutton-icon {
  fill: orange !important;
}

@media (-moz-content-prefers-color-scheme: dark) {
	:root[lwtheme]:not([style*='--lwt-header-image']) :is(#appMenu-new-tab-button2,#appMenu-fullscreen-button2,#panelMenu_viewBookmarksToolbar,#PanelUI-fxa-menu-connect-device-button,#appMenu_helpSwitchDevice,#appMenu_helpSafeMode,#appMenu_troubleShooting) > .toolbarbutton-icon {
	  fill: orange !important;
	}
}

/* grey */
:is(#appMenu-settings-button,#PanelUI-fxa-menu-setup-sync-button) > .toolbarbutton-icon {
  fill: grey !important;
}

:root[lwtheme]:-moz-lwtheme-brighttext:not([style*='--lwt-header-image']) :is(#appMenu-settings-button,#PanelUI-fxa-menu-setup-sync-button) > .toolbarbutton-icon {
  fill: lightgrey !important;
}

@media (-moz-content-prefers-color-scheme: dark) {
	:root[lwtheme]:not([style*='--lwt-header-image']) :is(#appMenu-settings-button,#PanelUI-fxa-menu-setup-sync-button) > .toolbarbutton-icon {
	  fill: lightgrey !important;
	}
}
